/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package session3;

import java.io.Serializable;
import java.sql.Connection;
import java.sql.DriverManager;

/**
 *
 * @author thanh
 */
public class DBUtils implements Serializable {

    public DBUtils() {
    }

    public static Connection makeConnection() {
        try {
            Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
            Connection conn = DriverManager.getConnection("jdbc:sqlserver://localhost:1456,databaseName=Sinhvien","sa","1");
            return conn;
        } catch (Exception e) {
        }
        return null;
    }
}
